function FinGridCheck(FormName,row) {ConsoleOR
	field = document.FormName.check[row];
	$valu = document.FormName.POOL.value;
if (field.checked == false) {
		field.checked = true;
		$valu += field.value+',';
		} else {
		field.checked = false;
		$valu = $valu.replace( field.value+',', '');
		}
	document.FormName.POOL.value = $valu;
	subform('FormName','SUMS');
}
function FinGridCheckAll(FormName) {
	field = document.FormName.checkALL;
	$len = document.FormName.check.length;
	
	if (field.checked == true) {
	$sta = true;
	} else {
	$sta = false;
	}
	$valu = '';
	for ($i = 0; $i < $len; $i++) {
	if ($i > 0) {
		document.FormName.check[$i].checked = $sta;
		$valu = $valu+document.FormName.check[$i].value+',';
		}
	}  if ($sta == false) {
	$valu = '';
	}
	document.FormName.POOL.value = $valu;
	subform('FormName','SUMS');
}
